//
//  FDNextStepJX.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FDNextStepJX.h"

@implementation FDNextStepJX

+(NSMutableArray *)getStepModel:(NSData *)data
{
    NSMutableArray *arrStep = [NSMutableArray array];
    NSError *error = nil;
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
    NSArray *array = [dic objectForKey:@"steps"];
    for (NSDictionary *dic1 in array) {
        FDNextStepModel *model = [FDNextStepModel getStepModel];
        model.note = [dic1 objectForKey:@"note"];
        model.stepIcon = [dic1 objectForKey:@"pic"];
        [arrStep addObject:model];
        
    }
    return arrStep;
    
}


@end
